home *** CD-ROM | disk | FTP | other *** search
/ PC Home 109 / PC Home 109.iso / data1.cab / Program_Files / be001.dxr / 00005_squig4.ls < prev    next >
Encoding:
Text File  |  2001-03-02  |  9.0 KB  |  247 lines

  1. on squig4
  2.   set direction to random(8)
  3.   startTimer()
  4.   repeat while the timer < 30
  5.     if direction = 1 then
  6.       set nom to the name of member the memberNum of sprite 6
  7.       if (nom = "1nw") or "2nw" or "1e" or "2e" or "1s" or "2s" or "1w" or "2w" or "1ne" or "2ne" or "1se" or "2se" or "1sw" or "2sw" then
  8.         set nom to "1n"
  9.         set the memberNum of sprite 6 to the number of member nom
  10.       end if
  11.       repeat with n = random(10) down to 1
  12.         set the locV of sprite 6 to the locV of sprite 6 - 1
  13.         set the locV of sprite 11 to the locV of sprite 11 - 1
  14.         if nom = "1n" then
  15.           set nom to "2n"
  16.         else
  17.           if nom = "2n" then
  18.             set nom to "1n"
  19.           end if
  20.         end if
  21.         set the memberNum of sprite 6 to the number of member nom
  22.         updateStage()
  23.         if the locV of sprite 6 <= -27 then
  24.           set the locV of sprite 6 to 507
  25.         end if
  26.         if the locV of sprite 11 <= -27 then
  27.           set the locV of sprite 11 to 507
  28.         end if
  29.       end repeat
  30.     end if
  31.     if direction = 3 then
  32.       set nom to the name of member the memberNum of sprite 6
  33.       if (nom = "1nw") or "2nw" or "1n" or "2n" or "1s" or "2s" or "1w" or "2w" or "1ne" or "2ne" or "1se" or "2se" or "1sw" or "2sw" then
  34.         set nom to "1e"
  35.         set the memberNum of sprite 6 to the number of member nom
  36.       end if
  37.       repeat with n = random(10) down to 1
  38.         set the locH of sprite 6 to the locH of sprite 6 + 1
  39.         set the locH of sprite 11 to the locH of sprite 11 + 1
  40.         if nom = "1e" then
  41.           set nom to "2e"
  42.         else
  43.           if nom = "2e" then
  44.             set nom to "1e"
  45.           end if
  46.         end if
  47.         set the memberNum of sprite 6 to the number of member nom
  48.         updateStage()
  49.         if the locH of sprite 6 >= 667 then
  50.           set the locH of sprite 6 to -27
  51.         end if
  52.         if the locH of sprite 11 >= 667 then
  53.           set the locH of sprite 11 to -27
  54.         end if
  55.       end repeat
  56.     end if
  57.     if direction = 5 then
  58.       set nom to the name of member the memberNum of sprite 6
  59.       if (nom = "1nw") or "2nw" or "1n" or "2n" or "1e" or "2e" or "1w" or "2w" or "1ne" or "2ne" or "1se" or "2se" or "1sw" or "2sw" then
  60.         set nom to "1s"
  61.         set the memberNum of sprite 6 to the number of member nom
  62.       end if
  63.       repeat with n = random(10) down to 1
  64.         set the locV of sprite 6 to the locV of sprite 6 + 1
  65.         set the locV of sprite 11 to the locV of sprite 11 + 1
  66.         if nom = "1s" then
  67.           set nom to "2s"
  68.         else
  69.           if nom = "2s" then
  70.             set nom to "1s"
  71.           end if
  72.         end if
  73.         set the memberNum of sprite 6 to the number of member nom
  74.         updateStage()
  75.         if the locV of sprite 6 >= 507 then
  76.           set the locV of sprite 6 to -27
  77.         end if
  78.         if the locV of sprite 11 >= 507 then
  79.           set the locV of sprite 11 to -27
  80.         end if
  81.       end repeat
  82.     end if
  83.     if direction = 7 then
  84.       set nom to the name of member the memberNum of sprite 6
  85.       if (nom = "1nw") or "2nw" or "1n" or "2n" or "1e" or "2e" or "1s" or "2s" or "1ne" or "2ne" or "1se" or "2se" or "1sw" or "2sw" then
  86.         set nom to "1w"
  87.         set the memberNum of sprite 6 to the number of member nom
  88.       end if
  89.       repeat with n = random(10) down to 1
  90.         set the locH of sprite 6 to the locH of sprite 6 - 1
  91.         set the locH of sprite 11 to the locH of sprite 11 - 1
  92.         if nom = "1w" then
  93.           set nom to "2w"
  94.         else
  95.           if nom = "2w" then
  96.             set nom to "1w"
  97.           end if
  98.         end if
  99.         set the memberNum of sprite 6 to the number of member nom
  100.         updateStage()
  101.         if the locH of sprite 6 <= -27 then
  102.           set the locH of sprite 6 to 667
  103.           if the locH of sprite 11 <= -27 then
  104.             set the locH of sprite 11 to 667
  105.           end if
  106.         end if
  107.       end repeat
  108.     end if
  109.     if direction = 2 then
  110.       set nom to the name of member the memberNum of sprite 6
  111.       if (nom = "1nw") or "2nw" or "1n" or "2n" or "1e" or "2e" or "1s" or "2s" or "1w" or "2w" or "1se" or "2se" or "1sw" or "2sw" then
  112.         set nom to "1ne"
  113.         set the memberNum of sprite 6 to the number of member nom
  114.       end if
  115.       repeat with n = random(10) down to 1
  116.         set the locV of sprite 6 to the locV of sprite 6 - 1
  117.         set the locH of sprite 6 to the locH of sprite 6 + 1
  118.         set the locV of sprite 11 to the locV of sprite 11 - 1
  119.         set the locH of sprite 11 to the locH of sprite 11 + 1
  120.         if nom = "1ne" then
  121.           set nom to "2ne"
  122.         else
  123.           if nom = "2ne" then
  124.             set nom to "1ne"
  125.           end if
  126.         end if
  127.         set the memberNum of sprite 6 to the number of member nom
  128.         updateStage()
  129.         if the locH of sprite 6 >= 667 then
  130.           set the locH of sprite 6 to -27
  131.         end if
  132.         if the locV of sprite 6 <= -27 then
  133.           set the locV of sprite 6 to 507
  134.         end if
  135.         if the locH of sprite 11 >= 667 then
  136.           set the locH of sprite 11 to -27
  137.         end if
  138.         if the locV of sprite 11 <= -27 then
  139.           set the locV of sprite 11 to 507
  140.         end if
  141.       end repeat
  142.     end if
  143.     if direction = 4 then
  144.       set nom to the name of member the memberNum of sprite 6
  145.       if (nom = "1nw") or "2nw" or "1n" or "2n" or "1e" or "2e" or "1s" or "2s" or "1w" or "2w" or "1ne" or "2ne" or "1sw" or "2sw" then
  146.         set nom to "1se"
  147.         set the memberNum of sprite 6 to the number of member nom
  148.       end if
  149.       repeat with n = random(10) down to 1
  150.         set the locV of sprite 6 to the locV of sprite 6 + 1
  151.         set the locH of sprite 6 to the locH of sprite 6 + 1
  152.         set the locV of sprite 11 to the locV of sprite 11 + 1
  153.         set the locH of sprite 11 to the locH of sprite 11 + 1
  154.         if nom = "1se" then
  155.           set nom to "2se"
  156.         else
  157.           if nom = "2se" then
  158.             set nom to "1se"
  159.           end if
  160.         end if
  161.         set the memberNum of sprite 6 to the number of member nom
  162.         updateStage()
  163.         if the locH of sprite 6 >= 667 then
  164.           set the locH of sprite 6 to -27
  165.         end if
  166.         if the locV of sprite 6 >= 507 then
  167.           set the locV of sprite 6 to -27
  168.         end if
  169.         if the locH of sprite 11 >= 667 then
  170.           set the locH of sprite 11 to -27
  171.         end if
  172.         if the locV of sprite 11 >= 507 then
  173.           set the locV of sprite 11 to -27
  174.         end if
  175.       end repeat
  176.     end if
  177.     if direction = 6 then
  178.       set nom to the name of member the memberNum of sprite 6
  179.       if (nom = "1nw") or "2nw" or "1n" or "2n" or "1e" or "2e" or "1s" or "2s" or "1w" or "2w" or "1ne" or "2ne" or "1se" or "2se" then
  180.         set nom to "1sw"
  181.         set the memberNum of sprite 6 to the number of member nom
  182.       end if
  183.       repeat with n = random(10) down to 1
  184.         set the locV of sprite 6 to the locV of sprite 6 + 1
  185.         set the locH of sprite 6 to the locH of sprite 6 - 1
  186.         set the locV of sprite 11 to the locV of sprite 11 + 1
  187.         set the locH of sprite 11 to the locH of sprite 11 - 1
  188.         if nom = "1sw" then
  189.           set nom to "2sw"
  190.         else
  191.           if nom = "2sw" then
  192.             set nom to "1sw"
  193.           end if
  194.         end if
  195.         set the memberNum of sprite 6 to the number of member nom
  196.         updateStage()
  197.         if the locH of sprite 6 <= -27 then
  198.           set the locH of sprite 6 to 667
  199.         end if
  200.         if the locV of sprite 6 >= 507 then
  201.           set the locV of sprite 6 to -27
  202.         end if
  203.         if the locH of sprite 11 <= -27 then
  204.           set the locH of sprite 11 to 667
  205.         end if
  206.         if the locV of sprite 11 >= 507 then
  207.           set the locV of sprite 11 to -27
  208.         end if
  209.       end repeat
  210.     end if
  211.     if direction = 8 then
  212.       set nom to the name of member the memberNum of sprite 6
  213.       if (nom = "1sw") or "2sw" or "1n" or "2n" or "1e" or "2e" or "1s" or "2s" or "1w" or "2w" or "1ne" or "2ne" or "1se" or "2se" then
  214.         set nom to "1nw"
  215.         set the memberNum of sprite 6 to the number of member nom
  216.       end if
  217.       repeat with n = random(10) down to 1
  218.         set the locV of sprite 6 to the locV of sprite 6 - 1
  219.         set the locH of sprite 6 to the locH of sprite 6 - 1
  220.         set the locV of sprite 11 to the locV of sprite 11 - 1
  221.         set the locH of sprite 11 to the locH of sprite 11 - 1
  222.         if nom = "1nw" then
  223.           set nom to "2nw"
  224.         else
  225.           if nom = "2nw" then
  226.             set nom to "1nw"
  227.           end if
  228.         end if
  229.         set the memberNum of sprite 6 to the number of member nom
  230.         updateStage()
  231.         if the locH of sprite 6 <= -27 then
  232.           set the locH of sprite 6 to 667
  233.         end if
  234.         if the locV of sprite 6 <= -27 then
  235.           set the locV of sprite 6 to 507
  236.         end if
  237.         if the locH of sprite 11 <= -27 then
  238.           set the locH of sprite 11 to 667
  239.         end if
  240.         if the locV of sprite 11 <= -27 then
  241.           set the locV of sprite 11 to 507
  242.         end if
  243.       end repeat
  244.     end if
  245.   end repeat
  246. end
  247.